package com.uuah.server.config.spring.parsers.assembly.configuration;

public class SinglePropertyWrapper implements ISingleProperty {

	private String oldName;
	private IPropertyConfiguration config;

	public SinglePropertyWrapper(String oldName, IPropertyConfiguration config) {
		this.oldName = oldName;
		this.config = config;
	}

	public boolean isCollection() {
		return config.isCollection(oldName);
	}

	public void setCollection() {
		config.addCollection(oldName);
	}

	public boolean isIgnored() {
		return config.isIgnored(oldName);
	}

	public void setIgnored() {
		config.addIgnored(oldName);
	}

	public boolean isReference() {
		return config.isReference(oldName);
	}

	public void setReference() {
		config.addReference(oldName);
	}

}
